package com.itrh.base.mapper;

import com.itrh.base.query.BaseQuery;
import com.itrh.org.domain.Department;
import com.itrh.org.query.DepartmentQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BaseMapper<T> {

    void insert(T t);
    void deleteById(Long id);
    void update(T t);
    T selectById(Long id);
    List<T> selectAll();

    Long count(BaseQuery query);

    List<T> pageList(BaseQuery query);

    void batchRemove(List<Long> ids);
}
